package com.thinkcube.edutainment.domain.data;

import android.os.Parcel;
import android.os.Parcelable;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonProperty;

@JsonIgnoreProperties(ignoreUnknown = true)
public class CouponData implements Parcelable {
	@JsonProperty("couponId")
	String couponId;
	@JsonProperty("couponCode")
	String couponCode;
	@JsonProperty("couponType")
	String couponType;
	@JsonProperty("trialPeriod")
	String trialPeriod;
	@JsonProperty("discountPercentage")
	String discountPercentage;
	

	public String getCouponId() {
		return this.couponId;
	}

	public void setCouponId(String couponId) {
		this.couponId = couponId;
	}

	public String getCouponCode() {
		return this.couponCode;
	}

	public void setCouponCode(String couponCode) {
		this.couponCode = couponCode;
	}

	public String getCouponType() {
		return this.couponType;
	}

	public void setCouponType(String couponType) {
		this.couponType = couponType;
	}

	public String getTrialPeriod() {
		return this.trialPeriod;
	}

	public void setTrialPeriod(String trialPeriod) {
		this.trialPeriod = trialPeriod;
	}

	public String getDiscountPercentage() {
		return this.discountPercentage;
	}

	public void setDiscountPercentage(String discountPercentage) {
		this.discountPercentage = discountPercentage;
	}

	protected CouponData(Parcel in) {
		couponId = in.readString();
		couponCode = in.readString();
		couponType = in.readString();
		trialPeriod = in.readString();
		discountPercentage = in.readString();
	}

	public CouponData() {
	}

	public int describeContents() {
		return 0;
	}

	public void writeToParcel(Parcel dest, int flags) {
		dest.writeString(couponId);
		dest.writeString(couponCode);
		dest.writeString(couponType);
		dest.writeString(trialPeriod);
		dest.writeString(discountPercentage);
	}

	public static final Parcelable.Creator<CouponData> CREATOR = new Parcelable.Creator<CouponData>() {
		public CouponData createFromParcel(Parcel in) {
			return new CouponData(in);
		}

		public CouponData[] newArray(int size) {
			return new CouponData[size];
		}
	};
}
